<?php

// mbilling/BillingBundle/Entity/ordersIpTable.php
namespace mbilling\BillingBundle\Entity;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 */
class ordersIpTable
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

    /**
     * @ORM\Column(type="string", length=45)
     */
    protected $ip;
    
    /**
     * @ORM\Column(type="string", length=45, nullable="TRUE")
     */
    protected $gateway;

    /**
     * @ORM\Column(type="string", length=45, nullable="TRUE")
     */
    protected $dns1;

    /**
     * @ORM\Column(type="string", length=45, nullable="TRUE")
     */
    protected $dns2;
    
    public function setId($id)
    {
        $this->id = $id;
    }
    public function getId()
    {
        return $this->id;
    }

    public function setIp($ip)
    {
        $this->ip = $ip;
    }
    public function getIp()
    {
        return $this->ip;
    }

    public function setGateway($gateway)
    {
        $this->gateway = $gateway;
    }
    public function getGateway()
    {
        return $this->gateway;
    }

    public function setDns1($dns1)
    {
        $this->dns1 = $dns1;
    }
    public function getDns1()
    {
        return $this->dns1;
    }

    public function setDns2($dns2)
    {
        $this->dns2 = $dns2;
    }
    public function getDns2()
    {
        return $this->dns2;
    }

    public function initDefaultEntity()
    {
        $this->setIp('192.168.0.1/24');
        $this->setGateway('192.168.0.1');
        $this->setDns1('192.168.0.2');
        $this->setDns2('192.168.0.3');
        return $this;
    }
}
?>
